import tools from "src/shop/tools";
import { Message }from 'iview';

export const {
	_formatDate,
	_cloneObj,
	oneOf,
} = tools;

const tipsTypeArr = ['info','success','warning','error','loading'];
export const tipsMessage = (content = '发生错误', type = 3, duration = 1.5) => {
    return Message[tipsTypeArr[type]]({
        content,
        duration
    });
};